package cn.com.cpic.insurance.rulecheck.core.element;

import cn.com.cpic.insurance.rulecheck.core.Context;
import cn.com.cpic.insurance.rulecheck.core.element.Element;

/**
 * 
 * 
 * @author 代波
 * @since 2011-8-14
 */
public class ConstantElement<T extends Comparable<T>> implements Element<T> {
	private static final long serialVersionUID = 181802087553543188L;
	
	private final T value;

	public ConstantElement(T value) {
		this.value = value;
	}

	public final T operate(Context context) {
		return value;
	}
}
